package com.training.hatton.base;

import android.os.Bundle;

public class RequestDataWrapper {

	public static final String EXTRA_PROCESS_ID = "extra_id_process";
	public static final String EXTRA_PROCESSOR_ID = "extra_id_processor";
	public static final String EXTRA_URL = "extra_url";
	public static final String EXTRA_JSON = "extra_json";
	public static final String EXTRA_ACTION = "extra_action";

	private Bundle mData;

	public RequestDataWrapper() {
		mData = new Bundle();
	}

	public RequestDataWrapper(Bundle bundle) {
		mData = bundle;
	}

	public Bundle getData() {
		return mData;
	}

	public void setProcessorId(int id) {
		mData.putInt(EXTRA_PROCESSOR_ID, id);
	}

	public int getProcessorId() {
		return mData.getInt(EXTRA_PROCESSOR_ID);
	}

	public void setId(int id) {
		mData.putInt(EXTRA_PROCESS_ID, id);
	}

	public int getId() {
		return mData.getInt(EXTRA_PROCESS_ID);
	}

	public void setUrl(String url) {
		mData.putString(EXTRA_URL, url);
	}

	public String getUrl() {
		return mData.getString(EXTRA_URL);
	}
}
